package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ReturnsAnArrayCopyContainingOfPassedRowIndexOfAGiven2DArray {
	public static double[] rowCopy(double[][] twoDdoubleArray, int row) {
		double[] rowCopyArr = new double[twoDdoubleArray[0].length];
		for (int col = 0; col < twoDdoubleArray[0].length; col++) {
			rowCopyArr[col] = twoDdoubleArray[row][col];
		}
		return rowCopyArr;
	}
}
